<template>
  <div id="app">
    <div class="row">
      <div class="col-xs-offset-2 col-xs-8">
        <div class="page-header"><h2>Router Basic - 01</h2></div>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
          <!--<a href="#/about" class="list-group-item">About</a>-->
          <!--<a href="#/home" class="list-group-item">Home</a>-->
         <router-link to="/about" class="list-group-item">About</router-link>
          <router-link to="/home" class="list-group-item">Home</router-link>
          <router-link to="/user" class="list-group-item">User</router-link>

          <!--<a href="javascript:;" class="list-group-item" @click="toAbout">About</a>-->
          <!--<a href="javascript:;" class="list-group-item" @click="toHome">Home</a>-->
          <!--<a href="javascript:;" class="list-group-item" @click="toUser">User</a>-->
        </div>
      </div>
      <div class="col-xs-6">
        <div data-v-957c9522="" class="col-xs-6">
          <div data-v-957c9522="" class="panel">
            <div data-v-957c9522="" class="panel-body">
                <router-view></router-view>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'App',
    methods:{
      toAbout(){
        // console.log("toAbout",this.$router)
        // this.$router.push("/about")
        this.$router.push({path:"/about"})
      },
      toHome(){
        // console.log("toHome",this.$router)
        // setTimeout(()=>{
          this.$router.push("/home")
        // },2000)
      },
      toUser(){
        // console.log("toUser",this.$router)
        this.$router.push("/user")
      }
    }
  }
</script>

<style scoped>

</style>
